import { gql } from 'apollo-server-koa'
export default gql`
  type Query {
    hello(name: String!): String!
    list(path: String!): [File]!
    openFile(path: String!): Int
    path(paths: [String!]!): String
  }
  type File {
    name: String!
    path: String!
    icon: String
    mtime: String!
    type: String!
    size: String!
    atime: String!
    isHidden: Boolean!
  }

  type Subscription {
    list(path: String!): [File]!
  }

`
